<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Menus'); ?></div>
    <h2>Menus</h2>
    <p>Menus (also called Navigation menus) are a collection of hierarchical links (menu items) used to navigate a website.</p>
    
    <div class="entry">
        <div class="sep"></div>
    </div>
    <table>
        <thead>
            <tr>
            	<th scope="col" class="chb"><input type="checkbox" onclick="selectAll(this);"></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Name');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Code');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Description');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Status');?></th>
            </tr>
        </thead>
            
        <tbody>
        
        <?php if(!empty($arrMenu)):?>
			<?php foreach($arrMenu as $i=>$R):?>
            <tr>
                <td class="align-center"><input type="checkbox"></td>
                <td>
					<strong><a href="javascript:void(0);" style="text-decoration:none;"><?php echo $R['menu_title']; ?></a></strong>
                    <p style="margin:0; padding: 2px 0 0;">
                    	<a href="<?php echo LINK_ADMINCP_MENU.'/items/?menu='.$R['menu_id']; ?>"  title="Items">Items</a> | 
                        <a href="<?php echo LINK_ADMINCP_MENU.'/form/?id='.$R['menu_id']; ?>"  title="Edit">Edit</a> | 
                        <a href="<?php echo LINK_ADMINCP_MENU.'/delete/?id='.$R['menu_id']; ?>" title="Delete">Delete</a> 
                    </p>
                </td>
                <td><?php echo $R['menu_name']; ?></td>
                <td><?php echo $R['menu_description']; ?></td>
                <td><?php echo $R['menu_status']; ?></td>
            </tr>
            <?php endforeach; ?>
		<?php else: ?>
            <tr>
                <td colspan="7">No data found!</td>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
    <div class="entry">
        <?php $this->widget('Pagination', array(
			'pages' => $objPages,
		)) ?>
        <div class="sep"></div>		
        <a class="button add" href="<?php echo LINK_ADMINCP_MENU.'/form'; ?>"><?php echo Yii::t('AdmincpModule.admincp', 'Add Menu'); ?></a> 
    </div>
</div>